from flask import Flask, request, url_for

app = Flask(__name__)
app.config.update(DEBUG=True)


@app.route('/qwq/<any(wo,ni):url_path>/<int:id>/')
def banji(url_path,id):
     print(url_for('qwq'))
     name = request.args.get('name')
     return f'{id}-{name}-{url_path}'


@app.route('/top')
def qwq():
     return 'qwq'


if __name__ == '__main__':
     app.run()